package com.hxd.mall.injector.modules

import com.hxd.mall.injector.scope.ActivityScope
import com.hxd.mall.module.product.IProductDetailPresenter
import com.hxd.mall.module.product.IProductDetailView
import com.hxd.mall.module.product.ProductDetailActivity
import com.hxd.mall.module.product.ProductDetailPresenter
import com.hxd.mall.module.usercenter.bindorder.BindOrderActivity
import com.hxd.mall.module.usercenter.bindorder.BindPresenter
import com.hxd.mall.module.usercenter.bindorder.IBindPresenter
import com.hxd.mall.module.usercenter.bindorder.IBindView
import dagger.Binds
import dagger.Module

/**
 * Created by qishuai on 2018/7/30.
 */
@Module
abstract class BindOrderModule {

    @Binds
    internal abstract fun bindView(activity: BindOrderActivity): IBindView

    @ActivityScope
    @Binds
    abstract fun provideMainPresenter(presenter: BindPresenter): IBindPresenter
}